package stream.pojo;

/**
 * 〈交易单〉<br>
 *
 * @author hedajiang
 * @create 2017/12/2
 * @since 1.0.0
 */
public class Transaction {
    private final Trander trander;
    private final int year;
    private final int value;

    public Transaction(Trander trander, int year, int value) {
        this.trander = trander;
        this.year = year;
        this.value = value;
    }

    public Trander getTrander() {
        return trander;
    }

    public int getYear() {
        return year;
    }

    public int getValue() {
        return value;
    }

    @Override
    public String toString() {
        return "Transaction{" +
                "trander=" + trander +
                ", year=" + year +
                ", value=" + value +
                '}';
    }
}